package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Member;
import com.antdesignbackend.backend.entity.entityVo.MemberVo;
import com.antdesignbackend.backend.mapper.MemberMapper;
import com.antdesignbackend.backend.service.MemberService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberServiceImpl extends ServiceImpl<MemberMapper, Member> implements MemberService {
    @Autowired
    private MemberMapper memberMapper;

    @Override
    public List<MemberVo> search(QueryWrapper<MemberVo> queryWrapper, Page<MemberVo> page) {
        return memberMapper.search(queryWrapper, page);
    }
    @Override
    public Integer count(QueryWrapper<MemberVo> queryWrapper) {
        return memberMapper.count(queryWrapper);
    }
}
